package com.probox.common.entity.mapper.order;

import com.probox.common.entity.domain.order.OrderShopCart;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.probox.common.entity.domain.order.vo.ShopCartVo;

/**
 * 购物车明细Mapper接口
 *
 * @author hds
 * @date 2021-05-28
 */
public interface OrderShopCartMapper extends BaseMapper<OrderShopCart> {

    public int delete(ShopCartVo shopCartVo);

    /**
     * 修改结算状态
     * @param shopCartVo
     * @return
     */
    public int updateSettleStatus(ShopCartVo shopCartVo);

    public Long sumCartNumber(ShopCartVo shopCartVo);

    /**
     * 统计活动限购
     * @param shopCartVo
     * @return
     */
    public Long countActivityNumber(ShopCartVo shopCartVo);
}
